#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import os
import sys

if len(sys.argv) != 2:
  print('please input [off/on] to setting the proxy!')
  quit()

op = sys.argv[1]

if op == 'on':
  print('set proxy mode: manual')
  os.system("gsettings set org.gnome.system.proxy mode 'manual' ")
  print('done!')
elif op == 'off':
  print('set proxy mode: none')
  os.system("gsettings set org.gnome.system.proxy mode 'none' ")
  print('done!')
else:
  print('please input [off/on] to setting the proxy!') 

quit()
